package com.flowplan.ai.service;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * AI智能建议结果
 * 
 * @author FlowPlan Team
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AiSuggestionResult {
    
    private boolean success;
    private String message;
    private String content;
    private Map<String, Object> categories;
    private boolean enabled;
    
    public static AiSuggestionResult success(String content, Map<String, Object> categories) {
        return AiSuggestionResult.builder()
                .success(true)
                .enabled(true)
                .content(content)
                .categories(categories)
                .message("建议生成成功")
                .build();
    }
    
    public static AiSuggestionResult failure(String message) {
        return AiSuggestionResult.builder()
                .success(false)
                .enabled(true)
                .message(message)
                .build();
    }
    
    public static AiSuggestionResult disabled(String message) {
        return AiSuggestionResult.builder()
                .success(false)
                .enabled(false)
                .message(message)
                .build();
    }
}